CC = g++ -O3 -march=opteron -m64 -mfpmath=sse -funroll-loops 
OBJECTS = tools.o ScanData.o pocs.o P1hilbert.o P2compact.o P3apriori.o P4fproject.o P5nonneg.o
pocs: $(OBJECTS)
	$(CC) $(OBJECTS) -o bin/exec/pocs
tools.o: tools.cpp pocs.h ScanData.h includes.h
	$(CC) -c tools.cpp
ScanData.o: ScanData.h ScanData.cpp includes.h
	$(CC) -c ScanData.cpp
pocs.o: pocs.h pocs.cpp includes.h
	$(CC) -c pocs.cpp
P1hilbert.o: pocs.h P1hilbert.cpp includes.h
	$(CC) -c P1hilbert.cpp
P2compact.o: pocs.h P2compact.cpp includes.h
	$(CC) -c P2compact.cpp
P3apriori.o: pocs.h P3apriori.cpp includes.h
	$(CC) -c P3apriori.cpp
P4fproject.o: pocs.h P4fproject.cpp includes.h
	$(CC) -c P4fproject.cpp
P5nonneg.o: pocs.h P5nonneg.cpp includes.h
	$(CC) -c P5nonneg.cpp

clean:
	rm *.o bin/exec/pocs *~
cleanobj:
	rm *.o
